﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ReceivingDetail.aspx.cs"
    Inherits="WMS6.Web.Inbound.ReceivingDetail" meta:resourcekey="Page" %>

<%@ Register Src="../UserControls/LotAtrributeCtrl.ascx" TagName="LotAtrributeCtrl"
    TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>ReceivingDetail</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />

    <script src="../Js/jquery.js" type="text/javascript"></script>

    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script>
    
    <script src="../Js/jquery.blockUI.js" type="text/javascript"></script>

    <script src="../Js/util.js" type="text/javascript"></script>

    <script src="../Js/calendar.js" type="text/javascript" charset="gb2312"></script>

    <script src="../Js/InitPage.js" type="text/javascript"></script>

    <script src="../Js/Verification.js" type="text/javascript"></script>
    
    <script type="text/javascript">
        //初始化页面
        window.onload = function(){
            initDetailPage();
            setLotValue();
        }
        
        
        //弹出窗口选择包装
        function selectPack()
        {
            var rtnValue = popModalWindow('../Configuration/PackQuery.aspx?action=txtPackID','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById("txtPackID").focus();
                document.getElementById("txtPackID").value = rtnValue;
                __doPostBack("txtPackID_TextChanged","");
            }
        }
        
        //弹出窗口选择货位
        function selectLocation(obj) {
            var rtnValue = popModalWindow('../Configuration/LocationQuery.aspx?action=' + escape(obj.id.toString()), 'dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById(obj.id.toString()).focus();
                document.getElementById(obj.id.toString()).value = rtnValue;
            }
        }
        
        function jsselectitembyvalue(objselect,objitemtext)
        {    
            //判断是否存在

            var isexit = false;

             for(var i=0;i<objselect.options.length;i++)
             {
                   if(objselect.options[i].text == objitemtext)
                   {
                       objselect.options[i].selected = true;
                       isexit = true;
                       break;

                   }
             }      
        }
          //弹出窗口选择供应商
        function selectVendor()
        {
            var rtnValue = popModalWindow('../Configuration/VendorQuery.aspx?action=txtVendorID','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById("txtVendorID").focus();
                document.getElementById("txtVendorID").value = rtnValue;
            }
        }
        
        //锁屏
        function blockScreen() {
            //锁屏
            $.blockUI.defaults.message = GetBlockUIMsg();
            $.blockUI.defaults.overlayCSS.backgroundColor = GetBlockUIBgColor();
            $.blockUI();
        }

        
        //设置批次属性值
         //设置批次属性值
        function setLotValue()
        {
            for(var i =1;i<11;i++)
            {                
                if(document.getElementById("LotAtrributeCtrl1_ctrl"+i) != null)
                {
                    if(document.getElementById("hdnType").value == "")  //非编辑状态，从ReceiptDetail中批次属性值
                    {
                        if(document.getElementById("LotAtrributeCtrl1_ctrl"+i).value == "")
                        {
                            document.getElementById("LotAtrributeCtrl1_ctrl"+i).value = document.getElementById("hdnLot"+i).value;
                        }
                    }
                    else  //编辑状态 取批次属性的默认值
                    {
                        document.getElementById("LotAtrributeCtrl1_ctrl"+i).value = document.getElementById("hdnLot"+i).value;
                    }
                }
            }
            if(document.getElementById("LotAtrributeCtrl1_txtProduct") != null)
            {
                if(document.getElementById("hdnType").value == "") //非编辑状态，从ReceiptDetail中批次属性值
                {
                    if(document.getElementById("LotAtrributeCtrl1_txtProduct").value == "")
                    {
                        document.getElementById("LotAtrributeCtrl1_txtProduct").value = document.getElementById("hdnProductDate").value;
                    }
                }
                else  //编辑状态 取批次属性的默认值
                {
                    document.getElementById("LotAtrributeCtrl1_txtProduct").value = document.getElementById("hdnProductDate").value;
                }
            }
            if(document.getElementById("LotAtrributeCtrl1_txtExpiryDate") != null)
            {
                if(document.getElementById("hdnType").value == "") //非编辑状态，从ReceiptDetail中批次属性值
                {
                    if(document.getElementById("LotAtrributeCtrl1_txtExpiryDate").value == "")
                    {
                        document.getElementById("LotAtrributeCtrl1_txtExpiryDate").value = document.getElementById("hdnExpiryDate").value;
                    }
                }
                else  //编辑状态 取批次属性的默认值
                {
                    document.getElementById("LotAtrributeCtrl1_txtExpiryDate").value = document.getElementById("hdnExpiryDate").value;
                }
            }
            
            if(document.getElementById("LotAtrributeCtrl1_txtExternalLot") != null)
            {
                if(document.getElementById("hdnType").value == "") //非编辑状态，从ReceiptDetail中批次属性值
                {
                    if(document.getElementById("LotAtrributeCtrl1_txtExternalLot").value == "")
                    {
                        document.getElementById("LotAtrributeCtrl1_txtExternalLot").value = document.getElementById("hdnExternal").value;
                    }
                }
                else  //编辑状态 取批次属性的默认值
                {
                    document.getElementById("LotAtrributeCtrl1_txtExternalLot").value = document.getElementById("hdnExternal").value;
                }
            }
        }
        
        // 根据 预期量计算 体积 毛重 净重
        function ComputeExpectedQty(obj)
        {     
            var farmartLength = document.getElementById("hdnFormart").value;
            if(obj.value != "" && parseFloat(obj.value) >0) 
            {
              document.getElementById("<%=txtGrossWgt.ClientID %>").value =document.getElementById("<%=hdnGrossWgt.ClientID %>").value *obj.value*document.getElementById("<%=hdnUomValue.ClientID %>").value;
              document.getElementById("<%=txtNetWgt.ClientID %>").value =document.getElementById("<%=hdnNetWgt.ClientID %>").value *obj.value*document.getElementById("<%=hdnUomValue.ClientID %>").value;
              document.getElementById("<%=txtCube.ClientID %>").value =document.getElementById("<%=hdnCube.ClientID %>").value *obj.value*document.getElementById("<%=hdnUomValue.ClientID %>").value;
                            
              //小数点后位数格式化
              document.getElementById("<%=txtGrossWgt.ClientID %>").value = eval(document.getElementById("<%=txtGrossWgt.ClientID %>").value).toFixed(farmartLength);
              document.getElementById("<%=txtNetWgt.ClientID %>").value = eval(document.getElementById("<%=txtNetWgt.ClientID %>").value).toFixed(farmartLength);
              document.getElementById("<%=txtCube.ClientID %>").value = eval(document.getElementById("<%=txtCube.ClientID %>").value).toFixed(farmartLength);              
            }
            else
            {
              document.getElementById("<%=txtGrossWgt.ClientID %>").value = "0";
              document.getElementById("<%=txtNetWgt.ClientID %>").value = "0";
              document.getElementById("<%=txtCube.ClientID %>").value = "0";
            }
        }
        
        //根据长宽高计算体积
        function calcCube(obj)
        {
            if(obj.value != "" && parseFloat(obj.value) >0) 
            {
                var length = 0;
                var width = 0;
                var height = 0;
                
                if(document.getElementById("txtLength").value != "")
                {
                    length = parseFloat(document.getElementById("txtLength").value);
                }
                if(document.getElementById("txtWidth").value != "")
                {
                    width = parseFloat(document.getElementById("txtWidth").value);
                }
                if(document.getElementById("txtHeight").value != "")
                {
                    height = parseFloat(document.getElementById("txtHeight").value);
                }
                
                document.getElementById("txtCube").value = length * width * height;
            }
        }

        //用户控件验证
        function CheckClientValidate() {
            Page_ClientValidate();
            if (Page_IsValid) {
                return true; //自定义JS脚本验证
            }
            else {
                return false;//未通过用户控件的验证控件
            }
        }
    </script>

    <style type="text/css">
        .style1
        {
            height: 22px;
        }
    </style>

</head>
<body >
    <form id="F4023" runat="server" >
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <div id="div_top">
            <table>
                <tr>
                    <td valign="bottom">
                        <asp:Label ID="lblASNDetail" runat="server" CssClass="label_header" Text="入库明细" 
                            meta:resourcekey="lblASNDetail"></asp:Label>
                    </td>
                    <td>
                        <asp:Button ID="btnCancel" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnCancel%>" AccessKey="c"
                            OnClick="btnCancel_Click" CausesValidation="false" />
                    </td>
                    <td>
                        <asp:Button ID="btnSave" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnSave%>" AccessKey="s"
                             OnClientClick="if(CheckClientValidate()) {return blockScreen()}" OnClick="btnSave_Click" />
                    </td>
                    <td>
                        <asp:Button ID="btnSaveContinue" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnSaveContinue%>"
                             OnClientClick="if(CheckClientValidate()) {return blockScreen()}" OnClick="btnSaveContinue_Click" />
                    </td>
                </tr>
            </table>
        </div>
        <div>
            <asp:Label ID="lblMsg" runat="server" CssClass="label_message" 
                meta:resourcekey="lblMsg"></asp:Label>
        </div>
        <div id="div_menu">
            <div style="float: left; width: 8px;">
                <div class="tabL" id="divL1">
                </div>
            </div>
            <div style="float: left;" class="tabLabelCont tabCur" onclick="setTab('one',1,3)"
                id="divM1">
                <asp:Label ID="one1" CssClass="hover" runat="server" meta:resourcekey="one1">入库明细</asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR" id="divR1">
                </div>
            </div>
            <div style="float: left; width: 8px;">
                <div class="tabL_1" id="divL2">
                </div>
            </div>
            <div style="float: left;" class="tabLabelCont tabCur_1" onclick="setTab('one',2,3);"
                id="divM2">
                <asp:Label ID="one2" CssClass="navigationlabel" runat="server" meta:resourcekey="one2">&nbsp;自定义字段&nbsp;</asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR_1" id="divR2">
                </div>
            </div>
            <div style="float: left; width: 8px;">
                <div class="tabL_1" id="divL3">
                </div>
            </div>
            <div style="float: left;" class="tabLabelCont tabCur_1" onclick="setTab('one',3,3);"
                id="divM3">
                <asp:Label ID="one3" CssClass="navigationlabel" runat="server" meta:resourcekey="one3">&nbsp;质检&nbsp;</asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR_1" id="divR3">
                </div>
            </div>
        </div>
        <div id="div_content">
            <div id="con_one_1" style="display: block;">
                <table width="720px" style="display: block; margin-left: 10px; margin-top: 10px;">
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblReceiptLineID" runat="server" CssClass="label" Text="行号" 
                                meta:resourcekey="lblReceiptLineID"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblStatus" runat="server" CssClass="label" Text="状态" 
                                meta:resourcekey="lblStatus"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblLpnID" runat="server" CssClass="label" Text="LPN" 
                                meta:resourcekey="lblLpnID"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblCaseID" runat="server" CssClass="label" Text="箱号" 
                                meta:resourcekey="lblCaseID"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtReceiptLineID" runat="server" CssClass="textbox" 
                                Enabled="False" meta:resourcekey="txtReceiptLineID"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:DropDownList ID="ddlStatus" runat="server" CssClass="mediumselectbox" 
                                Enabled="False" meta:resourcekey="ddlStatus">
                            </asp:DropDownList>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtLpnID" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtLpnID"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtCaseID" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtCaseID"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblSkuID" runat="server" CssClass="label" Text="货品代码" 
                                meta:resourcekey="lblSkuID"></asp:Label><font
                                class="must_input">*</font>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblSkuDescr" runat="server" CssClass="label" Text="货品描述" 
                                meta:resourcekey="lblSkuDescr"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblPackID" runat="server" CssClass="label" Text="包装" 
                                meta:resourcekey="lblPackID"></asp:Label><font
                                class="must_input">*</font>
                                
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblUomID" runat="server" CssClass="label" Text="计量单位" 
                                meta:resourcekey="lblUomID"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtSkuID" runat="server" CssClass="textbox" Enabled="False"  
                                meta:resourcekey="txtSkuID"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtSkuDescr" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtSkuDescr"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtPackID" runat="server" CssClass="textbox" OnTextChanged="txtPackID_TextChanged"
                                AutoPostBack="True" meta:resourcekey="txtPackID"></asp:TextBox><img src="../Images/icon_find.gif" alt="select one item"
                                    class="img" onclick="selectPack();" />
                        </td>
                        <td width="180px">
                            <asp:DropDownList ID="ddlUomID" runat="server" CssClass="mediumselectbox"  AutoPostBack="True"
                                        OnSelectedIndexChanged="ddlUomID_SelectedIndexChanged" >
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblReceivedQty" runat="server" CssClass="label" Text="接收量" 
                                meta:resourcekey="lblReceivedQty"></asp:Label><font
                                class="must_input">*</font>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblExpectedQty" runat="server" CssClass="label" Text="预期量" 
                                meta:resourcekey="lblExpectedQty"></asp:Label>
                        </td>
                        <td>
                         <asp:Label ID="lblHadReceivedQty" runat="server" CssClass="label" Text="已接收量" 
                                meta:resourcekey="lblHadReceivedQty"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblLoc" runat="server" CssClass="label" Text="货位" 
                                meta:resourcekey="lblLoc"></asp:Label><font
                                class="must_input">*</font>
                        </td>
                        
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtReceivedQty" runat="server" CssClass="textbox" 
                                onblur="ComputeExpectedQty(this);"></asp:TextBox>
                                <a onserverclick="txtReceivedQty_TextChanged" runat="server" style="display: none;"
                                        id="aReceivedQty"></a>
                        </td>
                        <td width="180px">
                           <asp:TextBox ID="txtExpectedQty" runat="server" CssClass="textbox" 
                                Enabled="False" meta:resourcekey="txtExpectedQty"></asp:TextBox>
                        </td>
                        <td width="180px">
                        <asp:TextBox ID="txtHadReceivedQty" runat="server" CssClass="textbox" Enabled="false"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtLoc" runat="server" CssClass="textbox"  onkeyUp="SearchDataAjax(this,'LOC','txtLoc');return false;" onblur="LoseFocus();return false"
                                meta:resourcekey="txtLoc"></asp:TextBox><img src="../Images/icon_find.gif"
                                alt="select one item" class="img" onclick="selectLocation(txtLoc);" />
                        </td>
                        
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblFreezeCode" runat="server" CssClass="label" Text="冻结代码" 
                                meta:resourcekey="lblFreezeCode"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblReasonCode" runat="server" CssClass="label" Text="原因代码" 
                                meta:resourcekey="lblReasonCode"></asp:Label>
                        </td>
                        
                        <td width="180px">
                            <asp:Label ID="lblReceiptDate" runat="server" CssClass="label" Text="入库日期" 
                                meta:resourcekey="lblReceiptDate"></asp:Label><font
                                class="must_input">*</font>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblVendorID" runat="server" CssClass="label" Text="供应商代码" 
                                meta:resourcekey="lblVendorID"></asp:Label>
                        </td>
                        
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:DropDownList ID="ddlFreezeCode" runat="server" CssClass="mediumselectbox" 
                                meta:resourcekey="ddlFreezeCode">
                            </asp:DropDownList>
                        </td>
                        <td width="180px">
                            <asp:DropDownList ID="ddlReasonCode" runat="server" CssClass="mediumselectbox" 
                                meta:resourcekey="ddlReasonCode">
                            </asp:DropDownList>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtReceiptDate" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtReceiptDate"></asp:TextBox><img
                                src="../Images/calendar.gif" class="img" alt="请选择日期" onclick="setday(this,txtReceiptDate)" />
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtVendorID" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtVendorID"></asp:TextBox><img
                                src="../Images/icon_find.gif" alt="select one item" class="img" onclick="selectVendor();" />
                        </td>
                        
                    </tr>
                    <tr style="height: 20px;">
                        <td width="180px">
                            <asp:Label ID="lblPoID" runat="server" CssClass="label" Text="PO号" meta:resourcekey="lblPoID"></asp:Label>
                        </td>
                        <td>
                            <asp:Label ID="lblCube" runat="server" CssClass="label" Text="体积" ></asp:Label>
                        </td>
                        <td>
                            <asp:Label ID="lblGrossWgt" runat="server" CssClass="label" Text="毛重" ></asp:Label>
                        </td>
                        <td>
                            <asp:Label ID="lblNetWgt" runat="server" CssClass="label" Text="净重" ></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtPoID" runat="server" CssClass="textbox" meta:resourcekey="txtPoID"></asp:TextBox>
                        </td>
                        <td>
                            <asp:TextBox ID="txtCube" runat="server" CssClass="textbox" onblur="Javascript:dataVer._Is123OrX(this,'lblMsg')"></asp:TextBox>
                        </td>
                        <td>
                            <asp:TextBox ID="txtGrossWgt" runat="server" CssClass="textbox" onblur="Javascript:dataVer._Is123OrX(this,'lblMsg')"></asp:TextBox>
                        </td>
                        <td>
                            <asp:TextBox ID="txtNetWgt" runat="server" CssClass="textbox" onblur="Javascript:dataVer._Is123OrX(this,'lblMsg')" ></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:CheckBox ID="chb0" runat="server" CssClass="checkbox" Text="需要质检" />
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblLength" runat="server" CssClass="label" Text="长" ></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblWidth" runat="server" CssClass="label" Text="宽" ></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblHeight" runat="server" CssClass="label" Text="高" ></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:CheckBox ID="CheckBox1" runat="server" CssClass="checkbox" Text="质检自动调整" />
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtLength" runat="server" CssClass="textbox" onblur="Javascript:dataVer._Is123OrX(this,'lblMsg');calcCube(this);"></asp:TextBox>
                            </td>
                        <td width="180px">
                            <asp:TextBox ID="txtWidth" runat="server" CssClass="textbox" onblur="Javascript:dataVer._Is123OrX(this,'lblMsg');calcCube(this);"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtHeight" runat="server" CssClass="textbox" onblur="Javascript:dataVer._Is123OrX(this,'lblMsg');calcCube(this);"></asp:TextBox>
                        </td>
                    </tr>
                    <tr style="height:10px;">
                        <td colspan="4"></td>
                    </tr>
                </table>
                <table style="display:block; margin-left:10px; ">
                    <tr>
                        <td><uc1:LotAtrributeCtrl ID="LotAtrributeCtrl1" runat="server" ShelfLifeIndicator="true" /></td>
                    </tr>
                    <tr style="height: 10px;">
                        <td>
                        </td>
                    </tr>
                </table>
            </div>
            <div id="con_one_2" style="display: none;">
                <table width="720" style="display: block; margin-left: 10px; margin-top: 10px;">
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblUdf1" runat="server" CssClass="label" Text="自定义字段01" 
                                meta:resourcekey="lblUdf1"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblUdf6" runat="server" CssClass="label" Text="自定义字段06" 
                                meta:resourcekey="lblUdf6"></asp:Label>
                        </td>
                        <td width="180px" colspan="2">
                            <asp:Label ID="lblRemark" runat="server" CssClass="label" Text="备注" 
                                meta:resourcekey="lblRemark"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtUdf1" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtUdf1"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtUdf6" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtUdf6"></asp:TextBox>
                        </td>
                        <td width="360px" colspan="2" rowspan="3">
                            <asp:TextBox ID="txtRemark" runat="server" CssClass="largetextarea" 
                                TextMode="MultiLine" meta:resourcekey="txtRemark"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblUdf2" runat="server" CssClass="label" Text="自定义字段02" 
                                meta:resourcekey="lblUdf2"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblUdf7" runat="server" CssClass="label" Text="自定义字段07" 
                                meta:resourcekey="lblUdf7"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtUdf2" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtUdf2"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtUdf7" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtUdf7"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblUdf3" runat="server" CssClass="label" Text="自定义字段03" 
                                meta:resourcekey="lblUdf3"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblUdf8" runat="server" CssClass="label" Text="自定义字段08" 
                                meta:resourcekey="lblUdf8"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtUdf3" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtUdf3"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtUdf8" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtUdf8"></asp:TextBox>
                        </td>
                        <td width="180px">
                            &nbsp;
                        </td>
                        <td width="180px">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblUdf04" runat="server" CssClass="label" Text="自定义字段04" 
                                meta:resourcekey="lblUdf04"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblUdf09" runat="server" CssClass="label" Text="自定义字段09" 
                                meta:resourcekey="lblUdf09"></asp:Label>
                        </td>
                        <td width="180px">
                            &nbsp;
                        </td>
                        <td width="180px">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtUdf4" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtUdf4"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtUdf9" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtUdf9"></asp:TextBox>
                        </td>
                        <td width="180px">
                            &nbsp;
                        </td>
                        <td width="180px">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblUdf5" runat="server" CssClass="label" Text="自定义字段05" 
                                meta:resourcekey="lblUdf5"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblUdf10" runat="server" CssClass="label" Text="自定义字段10" 
                                meta:resourcekey="lblUdf10"></asp:Label>
                        </td>
                        <td width="180px">
                            &nbsp;
                        </td>
                        <td width="180px">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtUdf5" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtUdf5"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtUdf10" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtUdf10"></asp:TextBox>
                        </td>
                        <td width="180px">
                            &nbsp;
                        </td>
                        <td width="180px">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                    <td style="height:10px"></td>
                    </tr>
                </table>
            </div>
            <div id="con_one_3"  style="display: none;" >
                <table width="720" style="display: block; margin-left: 10px; margin-top: 10px;">
                    <tr>
                        <td width="180px">
                            <asp:Label ID="Label1" runat="server" CssClass="label" Text="LPN" 
                              ></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="Label2" runat="server" CssClass="label" Text="质检数量" 
                               ></asp:Label>
                        </td>
                        <td width="180px" >
                            <asp:Label ID="Label3" runat="server" CssClass="label" Text="质检状态" 
                              ></asp:Label>
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="TextBox1" runat="server" CssClass="textbox"  Enabled="false" Text="90909"
                               ></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="TextBox2" runat="server" CssClass="textbox"   Text="100"
                              ></asp:TextBox>
                        </td>
                        <td width="180px" >
                            <asp:DropDownList ID="DropDownList1" runat="server" CssClass="mediumselectbox" 
                                meta:resourcekey="ddlUomID"> 
                                <asp:ListItem>未完成</asp:ListItem>
                                <asp:ListItem>完成</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td></td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:Label ID="Label4" runat="server" CssClass="label" Text="单位" 
                               ></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="Label5" runat="server" CssClass="label" Text="拒收数量" 
                               ></asp:Label>
                        </td>
                        <td>
                        <asp:Label ID="Label10" runat="server" CssClass="label" Text="质检员" 
                               ></asp:Label>
                        
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="TextBox4" runat="server" CssClass="textbox"  Enabled="false" Text="EA"
                                meta:resourcekey="txtUdf2"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="TextBox5" runat="server" CssClass="textbox"  Text="5"
                                meta:resourcekey="txtUdf7"></asp:TextBox>
                        </td>
                         <td width="180px">
                            <asp:TextBox ID="TextBox10" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtUdf7"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:Label ID="Label6" runat="server" CssClass="label" Text="接收量" 
                               ></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="Label7" runat="server" CssClass="label" Text="拒收原因" 
                               ></asp:Label>
                        </td>
                        <td><asp:Label ID="Label11" runat="server" CssClass="label" Text="质检时间" 
                               ></asp:Label></td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="TextBox6" runat="server" CssClass="textbox"  Enabled="false" Text="100"
                                meta:resourcekey="txtUdf3"></asp:TextBox>
                        </td>
                        <td width="180px">
                              <asp:DropDownList ID="DropDownList2" runat="server" CssClass="mediumselectbox" 
                                meta:resourcekey="ddlUomID"> 
                                  <asp:ListItem></asp:ListItem>
                                <asp:ListItem>坏货</asp:ListItem>
                                <asp:ListItem>质量差</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="TextBox11" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtUdf8"></asp:TextBox><img
                                src="../Images/calendar.gif" class="img" alt="请选择日期" onclick="setday(this,TextBox11)" />
                        </td>
                        <td width="180px">
                            &nbsp;
                        </td>
                    </tr>
                <tr>
                    <td style="height:10px"></td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
    <input type="hidden" id="hdnFrom" runat="server" />
    <input type="hidden" id="hdnReceiptID" runat="server" />
    <input type="hidden" id="hdnOwnerID" runat="server" />
    <input type="hidden" id="hdnType" runat="server" />
    <input type="hidden" id="hdnDefaultUom" runat="server" />
    <input id="hdnCube" runat="server" type="hidden" />
    <input id="hdnGrossWgt" runat="server" type="hidden" />
    <input id="hdnNetWgt" runat="server" type="hidden" />
    <input id="hdnUomValue" runat="server" type="hidden" />
    <input id="hdnFormart" runat="server" type="hidden"  />
    <input type="hidden" id="hdnDataFormat" runat="server" />
    <input type="hidden" id="hdncalendarFlag" runat="server" />    
    <asp:HiddenField ID="hdnLot1" runat="server" />
    <asp:HiddenField ID="hdnLot2" runat="server" />
    <asp:HiddenField ID="hdnLot3" runat="server" />
    <asp:HiddenField ID="hdnLot4" runat="server" />
    <asp:HiddenField ID="hdnLot5" runat="server" />
    <asp:HiddenField ID="hdnLot6" runat="server" />
    <asp:HiddenField ID="hdnLot7" runat="server" />
    <asp:HiddenField ID="hdnLot8" runat="server" />
    <asp:HiddenField ID="hdnLot9" runat="server" />
    <asp:HiddenField ID="hdnLot10" runat="server" />
    <asp:HiddenField ID="hdnProductDate" runat="server" />
    <asp:HiddenField ID="hdnExpiryDate" runat="server" />
    <asp:HiddenField ID="hdnExternal" runat="server" />
    </form>
</body>
</html>

<script language="javascript" type="text/javascript" event="onclick" for="document" >
		<!--
			hiddenCalendarDiv();
		//-->
</script>

